#pragma once

#include "../VContainer.h"
#include "../esflow/vector.h"

class CRotate : public VContainer
{
public:
    CRotate(void);
    ~CRotate(void);

public:
    void Init();

public:
    void start(int ndirection);
    void stop();
    void Update();
    void Add(VPicture* pic);

    void move(int x, int y);
    void resize(int w, int h);

    void SetGLenvironment() const;

    void animate(void);
    bool render() const;

protected:
    static const int max_count = 8;
    static float playtime;
protected:
    int           m_flag;
    bool          m_bIsPlaying;
    float         m_fPosPerSeconds;
    DWORD         m_dwStartTime;
    CVector       pos;
    //vector<RotationItem *> m_array;

};
